<div id="content">
	<h1>
		<?php echo $this->pageTitle; ?>
	</h1>
	<p><?php 
	echo "<td><a href=".$this->url(array(
			'controller' => 'inventoryitem',
			'action'     => 'add')).">Create new mapping</a>";
	?></p>
<div id="normaltable">
	<table>
		<thead>
			<tr>
				<th>SKU</th>
				<th>Title</th>
				<th>Mapped MasterCode</th>
				<th>MasterCode Description</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<?php 

			foreach($this->entries as $row) {
				
				echo '<tr>';				
	
					echo '<td>'.$row['inventoryItem'].'</td><td>'.$row['inventoryItemDesc'].'</td><td align="center">'.$row['masterCode'].'</td><td>'.$row['masterCodeDesc'].'</td>';
			
					echo '<td><a href='.$this->url(array(
							'sku'	=> $row['inventoryItem'],
							'controller' => 'inventoryitem',
							'action'     => 'edit')).'>Edit<a></td>';
				
				echo '</tr>';
			}

			?>
		</tbody>
	</table>
</div>
</div>